﻿$(document).ready(function () {
  $('#menu a').click(function () {
    $('#menu a').removeClass('active');
    $(this).addClass('active');
  });
  $('.child a').click(function () {
    $('#menu a').removeClass('active');
    $(this).parent().parent().parent().find('a:first').addClass('active');
    $(this).parent().parent().css({ visibility: "visible", display: "none" });
  });
  
  $("ul.sf-menu").superfish({ 
            animation: {opacity:'show',height:'show'},   // slide-down effect without fade-in 
            delay:     100,               // 1.2 second delay on mouseout 
			speed:'normal',
			autoArrows:  false
        }); 
});